package com.starbugs.wehcat.aop;

public class CalcLoggingImpl implements Calc{

  @Override
  public int add(int i, int j) {
    System.out.println("add 方法输入参数是["+i+","+j+"]");
    int result = i + j;
    System.out.println("add 方法输出结果是"+result);
    return result;
  }

  @Override
  public int sub(int i, int j) {
    System.out.println("sub 方法输入参数是["+i+","+j+"]");
    int result = i - j;
    System.out.println("sub 方法输出结果是"+result);
    return result;
  }

  @Override
  public int mul(int i, int j) {
    System.out.println("mul 方法输入参数是["+i+","+j+"]");
    int result = i * j;
    System.out.println("mul 方法输出结果是"+result);
    return result;
  }

  @Override
  public int div(int i, int j) {
    System.out.println("div 方法输入参数是["+i+","+j+"]");
    int result = i / j;
    System.out.println("div 方法输出结果是"+result);
    return result;
  }
}
